package com.alex.space.commons.reflect;

import lombok.*;

/**
 * @author Alex
 *         Created by Alex on 2017/12/27.
 */
@Getter
@Setter
@AllArgsConstructor
@NoArgsConstructor
@ToString
public class Car {
    private String brand;
    private String color;
    private int maxSpeed;

    public void introduce() {
        System.out.println(this.toString());
    }

    private void drive() {
        System.out.println("drive " + color + " " + brand);
    }
}
